package com.suapi.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.suapi.suapicommon.model.entity.InterfaceInfo;

/**
* @author suapi
* @description 针对表【interface_info(接口信息)】的数据库操作Service
* @createDate 2025-04-07 15:14:15
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {

    /**
     * 参数校验
     * @param interfaceInfo
     * @param add
     */
    void validInterfaceInfo(InterfaceInfo interfaceInfo, boolean add);

    /**
     * 开通接口权限
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    Boolean openPermission(Long interfaceInfoId, Long userId);
}
